import http from '@/utils/http'

// 员工基本信息
export const queryEmployees = (data) => {
  return http.post('/employee/queryEmployees', data)
}

export const delEmployee = (data) => {
  return http.post('/employee/deleteEmployee', data)
}

export const addEmployee = (data) => {
  return http.post('/employee/addEmployee', data)
}

export const updateEmployee = (data) => {
  return http.post('/employee/updateEmployee', data)
}

// 员工考勤信息
export const queryAttendance = (data) => {
  return http.post('/employee/queryAttendance', data)
}

export const addAttendance = (data) => {
  return http.post('/employee/addAttendance', data)
}

export const delAttendance = (data) => {
  return http.post('/employee/deleteAttendance', data)
}

export const updateAttendance = (data) => {
  return http.post('/employee/updateAttendance', data)
}

// 员工工资信息
export const querySalary = (data) => {
  return http.post('/employee/querySalary', data)
}

export const addSalary = (data) => {
  return http.post('/employee/addSalary', data)
}

export const delSalary = (data) => {
  return http.post('/employee/deleteSalary', data)
}

export const updateSalary = (data) => {
  return http.post('/employee/updateSalary', data)
}

// 员工请假信息
export const queryLeave = (data) => {
  return http.post('/employee/queryLeave', data)
}

export const addLeave = (data) => {
  return http.post('/employee/addLeave', data)
}

export const deleteLeave = (data) => {
  return http.post('/employee/deleteLeave', data)
}

export const updateLeave = (data) => {
  return http.post('/employee/updateLeave', data)
}

// 员工加班信息
export const queryOvertime = (data) => {
  return http.post('/employee/queryOvertime', data)
}

export const addOvertime = (data) => {
  return http.post('/employee/addOvertime', data)
}

export const deleteOvertime = (data) => {
  return http.post('/employee/deleteOvertime', data)
}

export const updateOvertime = (data) => {
  return http.post('/employee/updateOvertime', data)
}

// 培训
export const queryEmployeeTraining = (data) => {
  return http.post('/employee/queryTraining', data)
}

export const addEmployeeTraining = (data) => {
  return http.post('/employee/addTraining', data)
}

export const deleteEmployeeTraining = (data) => {
  return http.post('/employee/deleteTraining', data)
}

export const updateEmployeeTraining = (data) => {
  return http.post('/employee/updateTraining', data)
}